package online.longzipeng.cinemasys.service.impl;

import online.longzipeng.cinemasys.entity.Role;
import online.longzipeng.cinemasys.mapper.RoleMapper;
import online.longzipeng.cinemasys.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import online.longzipeng.cinemasys.vo.role.RoleSaveVO;
import online.longzipeng.cinemasys.vo.role.RoleUpdateVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public void updateRole(Role role) {
        updateById(role);
    }

    @Override
    public void add(Role role) {
        save(role);
    }
}
